<include file='Public/header' />
<form method="POST" enctype= "multipart/form-data" action="{:U('update')}" role="form">
	<input type='hidden' name="id" value={$one.id}>
	<input type='hidden' name="ypic" value={$one.pic}>
	<table class="table">
		<tr>
		<th>原头像</th>
		<td> <image src="__PUBLIC__/photo/{$one.pic}" width="60px" height="60px"></td>
		</tr>
		<tr>
		<th>上传新头像</th>
		<td><input type="file" name="pic" id="inputfile"></td>
		</tr>
		<tr>
		<th>用户名</th>
		<td> <input type="text" name="name" class="form-control" id="name" 
			 placeholder="请输入名称" value="{$one.name}">
		</td>
		</tr>
		<tr>
			<th>联系方式</th>
			<td>
				<input type="text" name="phone" class="form-control" id="phone" 
				placeholder="请输入名称" value="{$one.phone}">
			</td>
		</tr>
		<tr>
			<th>默认收货地址</th>
			<td>
				<input type="text" name="location" class="form-control" id="location" 
				placeholder="请输入名称" value="{$one.location}">
			</td>
		</tr>
	</table>
	<input type="submit" class="btn btn-primary" value="提交">
</form>
<include file='Public/footer'/>
